feat: add select, file_path, and directory_path input types - #121
Merged
Conversation
Add frontend rendering for the three missing InputType variants: - select: dropdown populated from input.options - file_path: text input with native file picker via Tauri dialog - directory_path: text input with native directory picker via Tauri dialog Also adds tauri-plugin-dialog dependency, updates TypeScript types and JSON schemas with options field for select inputs, and fixes unused tracing imports on Windows in shell_env.rs. Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
This was referenced Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
select,file_path, anddirectory_pathinput types in the server configuration UIselectrenders a dropdown from predefinedoptionson the input definitionfile_pathanddirectory_pathrender a text input with a native file/directory picker button viatauri-plugin-dialogInputDefinitionTypeScript type with new type union andoptionsfieldpasswordinput type (replaced bytext+secret: true)shell_env.rs(conditional#[cfg(unix)]import)Changes
casebranches inrenderInput()switchInputDefinition.typeunion and addoptionsfieldtauri-plugin-dialog@tauri-apps/plugin-dialogdependency#[cfg(unix)]Test plan
selectdropdown renders with options for servers like Playwright (browser select)file_pathpicker opens native file dialog and populates the text inputdirectory_pathpicker opens native directory dialog and populates the text inputtext+secret: truestill renders as password input (replacing oldpasswordtype)pnpm test:ts— existing tests pass with new dialog mock